<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>Baidu Map </title>
    <style type="text/css">
        html{height:100%}
        body{height:100%;margin:0px;padding:0px}
        #container{height:100%}

        body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}


    </style>
</head>
<body>
<div id="container">
</div>
</body>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=sMgjv6YDWVwfjhjj3acBhvjcG45tdsK6"></script>

<script>
    var map = new BMapGL.Map("container");          // 创建地图实例
    var point = new BMapGL.Point(118.18932,24.491857);  // 创建点坐标
    map.centerAndZoom(point, 15);                 // 初始化地图，设置中心点坐标和地图级别

    map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放

    map.setHeading(64.5);   //设置地图旋转角度
    map.setTilt(73);       //设置地图的倾斜角度

    var scaleCtrl = new BMapGL.ScaleControl();  // 添加比例尺控件
    map.addControl(scaleCtrl);
    var zoomCtrl = new BMapGL.ZoomControl();  // 添加缩放控件
    map.addControl(zoomCtrl);
    map.setMapType(BMAP_EARTH_MAP);      // 设置地图类型为地球模式

    var marker1 = new BMapGL.Marker(new BMapGL.Point(118.18932,24.491857));
    map.addOverlay(marker1);
</script>
</html>